run python validation directly from javascript